
import psutil
class Helper( object ):
    def __init__(self):
        pass
    @staticmethod
    def loaderSystemProcess( exe = "mitmdump.exe"):
        procList = [process.as_dict(attrs=['pid', 'name'])['name'] for process in psutil.process_iter()]
        if exe in procList:
            print("listening process have already started!")
            return True
        return False
if __name__ == '__main__':
    Helper.loaderSystemProcess()
